﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sustainalytics.Download.Entities
{
    public class PIInputFile
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public IList<History> History { get; set; }
    }

    public class History
    {
        public DateTime DateTime { get; set; }
        [BsonRepresentation(BsonType.String)]
        public HistoryStatus Status { get; set; }
        public string Details { get; set; }
    }

    public enum HistoryStatus
    {
        None = 0,
        UploadInvalid,
        UploadValid,
        AppliedStart,
        AppliedSuccess,
        AppliedFailure,
        Canceled,

    }
}
